package com.ziq.base.view.recycleview.adapter;

import android.content.Context;
import androidx.annotation.LayoutRes;

import com.ziq.base.view.recycleview.BaseMultiAdapter;
import com.ziq.base.view.recycleview.BaseMultiViewHolder;
import com.ziq.base.view.recycleview.BaseMultiViewType;
import com.ziq.base.view.recycleview.type.ListDataViewType;

import java.util.List;

public abstract class ListMultiAdapter<T> extends BaseMultiAdapter<T> {

    public ListMultiAdapter(Context context) {
        super(context);
    }

    public ListMultiAdapter(Context context, List<T> data) {
        super(context, data);
    }

    @Override
    protected void initViewType(List<BaseMultiViewType> viewTypesList) {
        viewTypesList.add(new ListDataViewType(this));
    }

    @LayoutRes
    public abstract int getItemLayoutRes();

    public abstract void bindDataViewHolder(BaseMultiViewHolder holder, final int position);

}
